Skip to content

Conversation

@Karnaukhov-kh
Copy link
Member

@Karnaukhov-kh Karnaukhov-kh commented Nov 24, 2025

This pull request introduces significant enhancements to the Angular MCP toolkit, specifically around reporting and organizing deprecated CSS violations. The main improvements include a new tool for distributing violations into balanced work groups, improved documentation, and better default file handling for component contract tools. These changes streamline large-scale migration workflows and make the toolkit easier to use and integrate.

New Violation Grouping Tool & Workflow Improvements

New tool for work distribution:

  • Added the group-violations tool, which takes a saved violations report and organizes files into balanced work groups using a bin-packing algorithm. It ensures path exclusivity and maintains directory boundaries for parallel development, saving results as individual JSON and Markdown files. [1] [2] [3] [4]

Documentation updates:

  • Updated README.md and docs/tools.md to describe the new group-violations tool, clarify the purpose and output of report-violations and report-all-violations, and revise recommended workflows to include group creation for parallel migration. [1] [2] [3] [4]

Component Contract Tool Improvements

Default save location handling:

  • Changed saveLocation to be optional in both the build and diff component contract tools. If not provided, a sensible default path is generated based on the component name, reducing required configuration and avoiding errors. [1] [2] [3] [4] [5] [6]

Schema updates:

  • Updated tool schemas to reflect that saveLocation is now optional and documented the new default path behavior. [1] [2] [3] [4]

These changes make it easier to run large-scale migrations by automating the grouping of work, improving documentation, and simplifying file management for contract tools.


return `# ${group.name}
## Summary
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird formatting?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good 🤔

@AdrianRomanski AdrianRomanski self-requested a review November 25, 2025 11:16
Copy link
Member

@AdrianRomanski AdrianRomanski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall it looks solid, but i dont like the "/" comments before initalization of variables.
They add nothing to the context more than method would do.
/** comments are good

'Path where to save the diff result file. Supports both absolute and relative paths.',
'Path where to save the diff result file. Supports both absolute and relative paths. If not provided, defaults to tmp/.angular-toolkit-mcp/contracts/diffs/<component-name>-diff.json',
},
contractBeforePath: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Contract diff has a default saveLocation path, would be good to have an unified approach to provide same default location for contractBefore-*/afterPath

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I improved schemas, but not sure we want to have explicit before/after folders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants